<hr width="60"> 
<P>
<form method="POST" action="useradd.php"> 
<div id="setupForm"><div class="title"><span class="form_title">{if $mode eq "modify"} Editing {$userfirst} {$userlast} <input type="hidden" name="userid" value="{$userid}"> {else if} Add A New User to Binder {/if} </span> </div>
<input type="hidden" name="mode" value="{$mode|default:'add'}">
 <table width="300">
   <tr>
   <td> Username/Email  </td> <td> <input type="text" class="req" name="email" size="60" value="{$useremail}"> </td> 
  </tr>
 
  <tr>  
   <td> Password </td> <td> <input type="password" name="password" value="{$userpassword}" /> </td> 
  </tr>
  <tr>
   <td> Confirm (Password) </td> <td> <input type="password" name="passwordconfirm" value="{$userpassword}" /> </td> 
  </tr>
  <tr>
   <td> Firstname </td> <td> <input type="text" name="firstname" size="60" value="{$userfirst}" /> </td> 
  </tr>
  <tr>
   <td> Lastname </td> <td> <input type="text" name="lastname" size="60" value="{$userlast}" /> </td> 
  </tr>
 <tr>
   <td> User Level </td> <td> <select name="userlevel"> 
                                <option value="0"> Administrator (Super User) </a> 
                                <option value="1"> Domain Administrator </a> 
                              </select> 
                          </td> 
  </tr>
   
  {if $mode eq "modify"} 
   <tr>
   <td> User Domains </td> 
    <td> <a href="fqdnlist.php?foruser={$userid}"> Click here to view all domain owned by this {$userfirst} {$userlast} </a>  </td> 
  </tr> 
  {/if}
   <tr>
   <td> <input type="submit" class="loginButton" value="{if $mode eq "modify"} Update User {else} Add User {/if}">   </td> <td> <input type="reset" class="loginButton"> </td> 
  </tr>
 

 </table> 
